package com.tairan.chapter.flowable.controller;

import com.tairan.chapter.flowable.service.DeModelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/act/model")
public class DeModelController {

    @Autowired
    private DeModelService deModelService;


    @RequestMapping("/deploy")
    public String deploy(String id) {
        return deModelService.deploy(id);
    }

}
